package cn.niit.letuseatdemo.entity.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: JinNa ToDo
 * @Date: 2022/11/10/14:46
 * @Description:订单详情
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserOrderDetail  implements Serializable {//Serializable:实现序列化，保存对象状态，必要时恢复
    private static final long serialVersionUID = 1L; //定义程序序列化Id

    //订单id
    private Integer orderId;
    //商品id
    private Integer goodsId;
    //收货人姓名
    private String userName;

//    多表关联
    private UserOrder userOrder;

}